package com.ruoyi.bussiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bussiness.mapper.TraExamMapper;
import com.ruoyi.bussiness.domain.TraExam;
import com.ruoyi.bussiness.service.ITraExamService;
import com.ruoyi.common.core.text.Convert;

/**
 * 考试信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
@Service
public class TraExamServiceImpl implements ITraExamService 
{
    @Autowired
    private TraExamMapper traExamMapper;

    /**
     * 查询考试信息
     * 
     * @param id 考试信息主键
     * @return 考试信息
     */
    @Override
    public TraExam selectTraExamById(Long id)
    {
        return traExamMapper.selectTraExamById(id);
    }

    /**
     * 查询考试信息列表
     * 
     * @param traExam 考试信息
     * @return 考试信息
     */
    @Override
    public List<TraExam> selectTraExamList(TraExam traExam)
    {
        return traExamMapper.selectTraExamList(traExam);
    }

    /**
     * 新增考试信息
     * 
     * @param traExam 考试信息
     * @return 结果
     */
    @Override
    public int insertTraExam(TraExam traExam)
    {
        return traExamMapper.insertTraExam(traExam);
    }

    /**
     * 修改考试信息
     * 
     * @param traExam 考试信息
     * @return 结果
     */
    @Override
    public int updateTraExam(TraExam traExam)
    {
        return traExamMapper.updateTraExam(traExam);
    }

    /**
     * 批量删除考试信息
     * 
     * @param ids 需要删除的考试信息主键
     * @return 结果
     */
    @Override
    public int deleteTraExamByIds(String ids)
    {
        return traExamMapper.deleteTraExamByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除考试信息信息
     * 
     * @param id 考试信息主键
     * @return 结果
     */
    @Override
    public int deleteTraExamById(Long id)
    {
        return traExamMapper.deleteTraExamById(id);
    }
}
